//采编归属编辑
var vueApp = new Vue({
  el: '#app',
  data: function () {

    return {    	
         
          title: '',
          msg_cont: '',        
         
       
      };
  },
  mounted: function () {
    this.initData();
  },
  methods: {

    initData:function(){
        this.msg_id = tools.getQueryString("msg_id");
        if(this.msg_id==""){
          this.showError("数据加载异常");
        }
        this.getInfo();         

    },  
    
    getInfo:function(){
		  var that=this;
		  var jsonStr={
		   "msg_id": this.msgId
		  };
		  var reqData={
			"jsonStr":JSON.stringify(jsonStr)
		  };
		  var data = tools.ajaxRequestEx("pub/msg/messageInfo", reqData);
		  console.log(data);
		  if(data.respCode !=0){
			  that.showError(data.respDesc);   
			  return false;
		  }else{
			  var info = data.list[0];			 
			  this.msg_cont= info.msg_cont;
			  
	       }			      
		 
		  
		  
	  },
   
    showError: function(info){
        var i = (info==undefined?"加载数据错误":info);
        this.$alert(i, '系统错误', {
             confirmButtonText: '确定'
        }); 
    },

   
  }
})